package control;
import java.lang.String;

/**
 * OpsFilter
 * @author Adriano de Albuquerque Batista
 * @author Alfeu Buriti
 * @author Pablo Diego Alencar
 * @author Yuri Cariry Cabral de Melo
 *
 */
public class OpsFilter{


	/**
	 * organizeSoapResponse
	 * @param outFileName String outFileName
	 */
	public void organizeSoapResponse(String outFileName){
		System.out.println("Inicio do OpsFilter -> organizeSoapResponse ");

		String 	soapResponse = new InFile().readFile( outFileName );
		XmlParser 	xm 	= new XmlParser();
		soapResponse   	= xm.getElementByName (soapResponse, "return");	
		soapResponse 	= xm.cleanSoapMessage(soapResponse);
		new PrintFile( outFileName, soapResponse );
//		System.out.println(soapResponse);

		System.out.println("Fim do OpsFilter -> organizeSoapResponse ");
	}
}